﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DotSpatial.Projections;
using System.IO;
namespace SoilProfiler
{
    public partial class uxImportWells : Form
    {
        public uxImportWells()
        {
            InitializeComponent();

        }


        public string Projection { set; get; }

        private void uxBrowse_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                uxFileName.Text = openFileDialog1.FileName;
            
            }
        }



        private void uxAccept_Click(object sender, EventArgs e)
        {

            if (Projection != null || Projection != "")
                Close();
            else
                MessageBox.Show("Please configure projection");



        }

        private void openFileDialog2_FileOk(object sender, CancelEventArgs e)
        {

        }

        private void uxConfigure_Click(object sender, EventArgs e)
        {
            ProjectionDatum p = new ProjectionDatum();
            if (p.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Projection = p.Projection;
            }
        }


    }
}
